home *** CD-ROM | disk | FTP | other *** search
- .model tiny
- locals
- .386
- .code
-
- org 100h
-
- Main proc
- push di
- mov di, offset RegAX
- mov ax, ss
- call Ponlo
- push ss
- pop ax
- mov di, offset RegBX
- call Ponlo
- mov ax, cx
- mov di, offset RegCX
- call Ponlo
- mov ax, dx
- mov di, offset RegDX
- call Ponlo
- mov ax, si
- mov di, offset RegSI
- call Ponlo
- pop di
- mov ax, di
- mov di, offset RegDI
- call Ponlo
- mov ax, bp
- mov di, offset RegBP
- call Ponlo
- mov ah, 09
- mov dx, offset Mensaje
- int 21h
- ret
- Main endp
-
- Ponlo proc
- mov byte ptr [control], 0
- jmp Salto
- Salto2: mov byte ptr [control], 1
- Salto: push ax
- mov al, ah
- and ax, 0f00fh
- shr ah, 4
- xchg ah, al
- add al, 30h
- cmp al, 39h
- jbe Salto3
- add al, 7
- Salto3: stosb
- xchg ah, al
- add al, 30h
- cmp al, 39h
- jbe Salto4
- add al, 7
- Salto4: stosb
- pop ax
- cmp byte ptr [control], 1
- jz Acaba
- xchg ah, al
- jmp Salto2
- Acaba: ret
- Ponlo endp
-
- Control db 0
-
- Mensaje db 'AX='
- RegAX dd 0
- db ' BX='
- RegBX dd 0
- db ' CX='
- RegCX dd 0
- db ' DX='
- RegDX dd 0
- db ' SI='
- RegSI dd 0
- db ' DI='
- RegDI dd 0
- db ' BP='
- RegBP dd 0
- db '$'
-
- end Main
-